package com.itheima.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <h1>账号密码登录dto</h1>
 *
 * @author <a href="11n_yd2h5e1jx8@dingtalk.com">叶世铭</a>
 * @since 2023/1/15
 */
@Data
public class AccountLoginDto implements Serializable {
    private static final long serialVersionUID = -8652613018963764547L;

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @ApiModelProperty(value = "用户账号")
    private String id;

    /**
     * 用户密码
     */
    @NotBlank(message = "用户密码不能为空")
    @ApiModelProperty(value = "用户密码")
    private String password;

}
